package com.googlecode.animator.data.markers
{
	import com.googlecode.animator.data.IValueObject;
	
	public class HideMarkerVO extends BaseMarker
	{
		public static const TYPE:String = "HideMarker";
		
		public var begin:uint = 0;
		
		public var end:uint = 0;
		
		override public function clone(src:* = null):IValueObject
		{
			var clone:IValueObject = super.clone(new HideMarkerVO());
			
			(clone as HideMarkerVO).begin = this.begin;
			(clone as HideMarkerVO).end = this.end;
			
			return clone;
		}
		
		override public function toXML(src:XML = null):XML
		{
			var xml:XML = super.toXML(new XML(<{TYPE} id={this.id}></{TYPE}>));
			
			xml.appendChild(<begin>{this.begin}</begin>);
			xml.appendChild(<end>{this.end}</end>);

			return xml;
		}
		
		override public function fromXML(src:XML):void
		{
			super.fromXML(src);
			
			this.begin = src.begin;
			this.end = src.end;
	
		}

	}
}